package cn.kbyue.batchdemo.step;

import org.springframework.batch.item.ItemWriter;

import java.util.List;

/**
 * @author XL
 * @version 0.1
 * @date 2022/1/13 17:48
 */
public class Writer implements ItemWriter<String> {

    @Override
    public void write(List<? extends String> list) throws Exception {
        for (String str:list) {
            System.out.printf("写数据: %s \n", str);
        }
    }
}
